# -*- coding: utf-8 -*-
'''
Created on Dec 16, 2012

Lectura de archivos de hojas de cálculo

Instalar primero:
    sudo apt-get install python-xlrd

ver:
    http://www.youlikeprogramming.com/2012/03/examples-reading-excel-xls-documents-using-pythons-xlrd/

@author: jmmauricio
'''

from xlrd import open_workbook
    
if __name__ == '__main__':

    book = open_workbook('simple.xls')
    sheet = book.sheet_by_index(0)

    cell = sheet.cell(0,0) # acceso a una celda
    print cell.value
    
    col = sheet.col(0) # acceso a una columna
    for item in col:
        print item.value # cada elemento de la columna
